package com.erp.remote.goods;

import com.erp.entity.goods.Unit;
import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 商品单计量单位远程接口
 */
@RequestMapping("/unit")
public interface GoodsUnitRemote {

    @PostMapping("/add")
    AjaxResult unitAdd(@RequestBody Unit unit);

    @PostMapping("/edit")
    AjaxResult unitEdit(@RequestBody Unit unit);

    @DeleteMapping("/delete/{id}")
    AjaxResult unitDelete(@PathVariable Integer id);

    @PostMapping("/list")
    AjaxResult unitList(@RequestParam Map<String, Object> params);

    @GetMapping("/detail/{id}")
    AjaxResult unitDetail(@PathVariable Integer id);


}
